//
//  TIMDemoMacro.h
//  Demo_sdk
//
//  Created by Deli Xia on 2018/6/28.
//  Copyright © 2018年 Deli Xia. All rights reserved.
//

#ifndef TIMDemoMacro_h
#define TIMDemoMacro_h

#define RGBColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]
#define RGBAColor(r, g, b ,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:a]

#define TPSFontSize(a)    [UIFont systemFontOfSize:a]

//以图片名字加载图片
#define kLOADIMAGE(a)               [UIImage imageNamed:a]
/**
 *屏幕大小
 */
#define Screen_Bounds [UIScreen mainScreen].bounds
#define Screen_Width  [[UIScreen mainScreen] bounds].size.width  //屏幕宽
#define Screen_Height  [[UIScreen mainScreen] bounds].size.height //屏幕高

#define AUTO_WIDTH(value) value

#define     BORDER_WIDTH_1PX            ([[UIScreen mainScreen] scale] > 0.0 ? 1.0 / [[UIScreen mainScreen] scale] : 1.0)
/**
 *  正文字体颜色
 */
#define kMainFontColor UIColorFromRGBValue(0X1a1a1a)
/**
 *  次要字体颜色
 */
#define kSecondaryFontColor UIColorFromRGBValue(0X757575)

/**
 *  辅助字体颜色
 */
#define kAuxiliaryFontColor UIColorFromRGBValue(0X999999)
/**
 *  占位符字体颜色(用于不可点击区域的图标)
 */
#define kAccupyFontColor UIColorFromRGBValue(0Xbebebe)

//十六进制颜色
#define UIColorFromRGBValue(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
/**
 *  默认页面背景色
 */
#define DefaultBackGroundColor UIColorFromRGBValue(0XEEEEEE)

/**
 *设置frame
 */
#define Frame(x,y,w,h)    CGRectMake(x, y, w, h)


# define DebugLog(fmt, ...) NSLog((@"[SDK_TIM][函数名:%s]""[行号:%d]" fmt), __FUNCTION__, __LINE__, ##__VA_ARGS__);

/**
 *  菊花消失时间
 */
#define kActivity_DismisTime 0.1



#endif /* TIMDemoMacro_h */
